package com.ruoyi.moon.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 回复对象 moon_reply
 * 
 * @author admin
 * @date 2024-11-06
 */
public class MoonReply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 评论id 外键 */
    @NotBlank(message = "评论id不能为空")
    private Long comReviewsId;

    /** 用户id 外键 */
    private Long userId;

    /** 昵称*/
    private String nickName;
    /** 回复内容 */
    @Excel(name = "回复内容")
    @NotBlank(message = "回复内容不能为空")
    private String content;

    /** 回复用户id */
    private Long fromUid;

    /** 回复id */
    private Long replyId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setComReviewsId(Long comReviewsId) 
    {
        this.comReviewsId = comReviewsId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getComReviewsId()
    {
        return comReviewsId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setFromUid(Long fromUid) 
    {
        this.fromUid = fromUid;
    }

    public Long getFromUid() 
    {
        return fromUid;
    }
    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("comReviewsId", getComReviewsId())
            .append("content", getContent())
            .append("fromUid", getFromUid())
            .append("replyId", getReplyId())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("nickName", getNickName())
            .toString();
    }
}
